<?php 

return CMap::mergeArray(
	require(dirname(__FILE__).'/config.php'),
	array(
	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
	'name'=>'Tran Van Anh',
	'theme'=>'asiadesign', //them: vista,darklight

	// preloading 'log' component
	'preload'=>array('log'),
	//load module 
	'modules'=>array(
		'slideshow',
		'gii'=>array(
			'class'=>'system.gii.GiiModule',
			'password'=>'anhtran@124',
		),
    ),
	
	// autoloading model and component classes
	'import'=>array(
		'application.models.*',
		'application.components.*',
		'application.controllers.*',
	),
	
	// set default controller
	'defaultController'=>'site',
	
			
	'components'=>array(
		'user'=>array(
			// enable cookie-based authentication
			'allowAutoLogin'=>true,
	//		'loginUrl'=>array('/user/login'),
		),
		//load database mysql

		//url format
        'urlManager'=>array(
        	'urlFormat'=>'path', //format path url 
			'urlSuffix'=>'.adc', //suffix url current
			'caseSensitive'=>false,
			'useStrictParsing'=>false,
			'rules'=>array(
        		'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
        	),
        ),
		// log error warning
		'log'=>array(
			'class'=>'CLogRouter',
			'routes'=>array(
				array(
					'class'=>'CFileLogRoute',
					'levels'=>'error, warning',
				),
				// uncomment the following to show log messages on web pages
				
				/* array(
					'class'=>'CWebLogRoute',
				), */
				
			),
		),
		// session

		//
	),
)
);

?>